﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace SMP.Client.SystemForm
{
    using System.Collections;
    using SMP.Service;

    public partial class FrmLogin : DevExpress.XtraEditors.XtraForm
    {
        public FrmLogin()
        {
            InitializeComponent();
        }

        private void FrmLogin_Load(object sender, EventArgs e)
        {
            txtTaikhoan.EditValue = null;
            txtMatkhau.EditValue = null;
            txtTaikhoan.Focus();
        }

        private void btnDangnhap_Click(object sender, EventArgs e)
        {
            Hashtable hashtableControl = new Hashtable();
            hashtableControl.Add(txtTaikhoan, lbTaikhoan);
            hashtableControl.Add(txtMatkhau, lbMatkhau);
            if (!Windows.Utility.Validator.CheckNullFields(hashtableControl))
                return;


        }

        private void btnHuybo_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}